import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
type Result = {
  current_page: number;
  result?: any;
  per_page?: number;
  total?: number;
};
type ResultDelete = {
  code: number;
  msg: string;
};
type ResultCreate = {
  code: number;
  msg: string;
};
type Show = {
  code: number;
  message: string;
  result?: any;
};
/** 站内通知 */
export const noticeStoreApi = (params?: object) => {
  return http.request<Show>("post", baseUrlApi + "/notice/store", {
    params
  });
};

/** 更新通知查看状态 */
export const getNoticeInspectApi = (params?: object) => {
  return http.request<Show>("post", baseUrlApi + "/notice/inspect", {
    params
  });
};

/** 通知获取 */
export const getNoticeReadApi = (params?: object) => {
  return http.request<Show>("post", baseUrlApi + "/notice/read", {
    params
  });
};

